/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-06     SummerGift   first version
 */

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>

#include "RGB.h"
#include "offline.h"

#define LOG_TAG "main"
#define LOG_LVL LOG_LVL_DBG
#include <ulog.h>

int main(void)
{
    while (1) 
    {
        if (offline_manage[SYSTEM_PROTECT].online_state == STATE_ONLINE)
        {
            aRGB_led_show(LED_Green);
        }
        else
        {
            aRGB_led_show(LED_Red);
        }
        rt_thread_mdelay(5);
    }
    return RT_EOK;
}

